<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 10:20:21
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/ProductClass/edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:11316891985160d7e5645f98-39510155%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '497491c1ad31ffbc9b29fb47f42198d90fcb8b91' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/ProductClass/edit.tpl',
      1 => 1364183647,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11316891985160d7e5645f98-39510155',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rs' => 0,
    'lang' => 0,
    'is_auto_no' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5160d7e575d52',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5160d7e575d52')) {function content_5160d7e575d52($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.wz.php';
?><?php if ($_smarty_tpl->tpl_vars['rs']->value['class_level']==1){?>
<form action="<?php echo U('ProductClass/update');?>
" method="POST" name="Basic_addProductClass" onsubmit="">
<?php echo smarty_function_wz(array(),$_smarty_tpl);?>

<div class="add_box">
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['id'];?>
">
 <table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
     <tr><th colspan="2" class="t_left"><?php echo $_smarty_tpl->tpl_vars['lang']->value['title_1'];?>
</th></tr>
     <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_no'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_no" id="class_no" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_no'];?>
" <?php echo $_smarty_tpl->tpl_vars['is_auto_no']->value;?>
 >__*__
      </td>
    </tr>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_name_1'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_name" id="class_name" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_name'];?>
" class="spc_input" >__*__
      <input type="hidden" name="class_level" value="1">
      <input type="submit" class="button_new"  value="<?php echo $_smarty_tpl->tpl_vars['lang']->value['submit'];?>
">
      <span id="success" class="success"></span>
      </td>
    </tr>
</tbody>
</table> 
</div>
</form>  
<?php }elseif($_smarty_tpl->tpl_vars['rs']->value['class_level']==2){?>
<form action="<?php echo U('ProductClass/update');?>
" method="POST" name="Basic_addProductClass" onsubmit="">
<?php echo smarty_function_wz(array(),$_smarty_tpl);?>

<div class="add_box">
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['id'];?>
">
 <table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
     <tr><th colspan="2" class="t_left"><?php echo $_smarty_tpl->tpl_vars['lang']->value['title_2'];?>
</th></tr>
     <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_name_1'];?>
：</td>
      <td class="t_left">
      <input type="hidden" name="parent_id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['parent_id'];?>
" ><input id="parent_name" url="<?php echo U('/AutoComplete/productClass1');?>
" where="<?php echo urlencode("to_hide=1");?>
" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['parent_name'];?>
" jqac>__*__
      </td>
    </tr>
     <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_no'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_no" id="class_no" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_no'];?>
" <?php echo $_smarty_tpl->tpl_vars['is_auto_no']->value;?>
 >__*__
      </td>
    </tr>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_name_2'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_name" id="class_name" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_name'];?>
" class="spc_input" >__*__
      <input type="hidden" name="class_level" value="2">
      <input type="submit" class="button_new"  value="<?php echo $_smarty_tpl->tpl_vars['lang']->value['submit'];?>
">
      <span id="success" class="success"></span>
      </td>
    </tr>
</tbody>
</table> 
</div>
</form> 
<?php }elseif($_smarty_tpl->tpl_vars['rs']->value['class_level']==3){?>

<form action="<?php echo U('ProductClass/update');?>
" method="POST" name="Basic_addProductClass" onsubmit="">
<?php echo smarty_function_wz(array(),$_smarty_tpl);?>

<div class="add_box">
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['id'];?>
">
 <table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
     <tr><th colspan="2" class="t_left"><?php echo $_smarty_tpl->tpl_vars['lang']->value['title_3'];?>
</th></tr>
     <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_name_2'];?>
：</td>
      <td class="t_left">
      <input type="hidden" name="parent_id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['parent_id'];?>
" ><input id="parent_name" url="<?php echo U('/AutoComplete/productClass2');?>
"  where="<?php echo urlencode("to_hide=1");?>
" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['parent_name'];?>
" jqac>__*__
      </td>
    </tr> 
     <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_no'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_no" id="class_no" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_no'];?>
" <?php echo $_smarty_tpl->tpl_vars['is_auto_no']->value;?>
 >__*__
      </td>
    </tr>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_name_3'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_name" id="class_name" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_name'];?>
" class="spc_input" >__*__
      <input type="hidden" name="class_level" value="3">
      <input type="submit" class="button_new"  value="<?php echo $_smarty_tpl->tpl_vars['lang']->value['submit'];?>
">
      <span id="success" class="success"></span>
      </td>
    </tr>
</tbody>
</table> 
</div>
</form> 

<?php }elseif($_smarty_tpl->tpl_vars['rs']->value['class_level']==4){?>
<form action="<?php echo U('ProductClass/update');?>
" method="POST" name="Basic_addProductClass" onsubmit="">
<?php echo smarty_function_wz(array(),$_smarty_tpl);?>

<div class="add_box">
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['id'];?>
">
 <table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
     <tr><th colspan="2" class="t_left"><?php echo $_smarty_tpl->tpl_vars['lang']->value['title_4'];?>
</th></tr>
     <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_name_3'];?>
：</td>
      <td class="t_left">
      <input type="hidden" name="parent_id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['parent_id'];?>
" ><input id="parent_name" url="<?php echo U('/AutoComplete/productClass3');?>
"  where="<?php echo urlencode("to_hide=1");?>
" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['parent_name'];?>
" jqac>__*__
      </td>
    </tr> 
     <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_no'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_no" id="class_no" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_no'];?>
" <?php echo $_smarty_tpl->tpl_vars['is_auto_no']->value;?>
 >__*__
      </td>
    </tr>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['class_name_4'];?>
：</td>
      <td class="t_left">
      <input type="text" name="class_name" id="class_name" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['class_name'];?>
" class="spc_input" >__*__
      <input type="hidden" name="class_level" value="4">
      <input type="submit" class="button_new"  value="<?php echo $_smarty_tpl->tpl_vars['lang']->value['submit'];?>
">
      <span id="success" class="success"></span>
      </td>
    </tr>
</tbody>
</table> 
</div>
</form> 
<?php }?>

<script>
function saveProductClass(frm){
	return true;
	$(frm).find("#success").html('');
	if(true==$.validForm(frm)){
		var data = $(frm).serialize();
		$.post("_Ajax_/addClass",data,function(bool){
			$(frm).find("#class_no").val('');
			$(frm).find("#class_name").val('');
			$(frm).find("#parent_name").val('');
			$(frm).find("#parent_id").val('');
			$(frm).find("#success").html('<?php echo $_smarty_tpl->tpl_vars['lang']->value['success'];?>
');
			setTimeout(location.reload(),1500)
		})
	}
	return false;
}
</script>  <?php }} ?>